Text
Trilium utilizes the powerful CKEditor 5 as its text editing component.
Formatting Options
The Trilium text note interface does not display toolbars or formatting options by default. These can be accessed by:
- Selecting text to bring up an inline toolbar.
2. Clicking on the block toolbar.
Read-Only vs. Editing Mode
Text notes are usually opened in edit mode. However, they may open in read-only mode if the note is too big or the note is explicitly marked as read-only. For more information, see Read-Only Notes.
General Formatting
Since Trilium uses CKEditor, all of its formatting options are available here. You may use the graphical toolbar shown above, or enter formatting such as markdown markdown directly in the text. Examples include:
- Bold: Type
**text**or__text__ - Italic: Type
*text*or_text_ Strikethrough: Type~~text~~
Lists
See Lists.
Blocks
- Block quote: Start a line with
>followed by a space
Developer-specific formatting
The following features are supported:
- Inline code
- Code blocks
See Developer-specific formatting for more information.
Headings
Create headings by starting a line with ## for heading 2, ### for
heading 3, and so on up to heading 6. Note that # is reserved
for the title.
Horizontal Line
Insert a horizontal line by starting a line with ---.
Markdown & Autoformat
CKEditor supports a markdown-like editing experience, recognising syntax and automatically converting it to rich text.
Complete documentation for this feature is available in the CKEditor documentation.
If autoformatting is not desirable, press Ctrl + Z to revert the text to its original form.
Note: The use of # for Heading 1 is not supported because it
is reserved for the title. Start with ## for Heading 2. More
information is available here.
Math Support
Trilium provides math support through KaTeX.